<?php
/*******************************************************************************
                           get_mailcode.php  -  description
                           --------------------------------
    begin                : Sat Nov 27 2004
    copyright            : (C) 2004 Bluemoon inc.
    home page            : http://www.bluemooninc.biz/
    auther               : Yoshi.Sakai
    email                : webmaster@bluemooninc.biz

    $Id: get_mailcode.php,v 1.0.0 2004/11/27 23:15:30 Yoshi.Sakai Exp $

-------------------------------------------------------------------------------
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
******************************************************************************/
class get_mailcode {
  function get_mailcode(){
	switch (_LANGCODE){
	case "af": $code = "ISO-8859-1";break;	//Afrikaans
	case "ar": $code = "ISO-8859-6";break;	//Arabic
	case "be": $code = "ISO-8859-5";break;	//Byelorussian
	case "bg": $code = "ISO-8859-5";break;	//Bulgarian
	case "ca": $code = "ISO-8859-1";break;	//Catalan
	case "cs": $code = "ISO-8859-2";break;	//Czech
	case "da": $code = "ISO-8859-1";break;	//Danish
	case "de": $code = "ISO-8859-1";break;	//German
	case "el": $code = "ISO-8859-7";break;	//Greek
	case "en": $code = "us-ascii";	break;	//English
	case "eo": $code = "ISO-8859-3";break;	//Esperanto
	case "es": $code = "ISO-8859-1";break;	//Spanish
	case "eu": $code = "ISO-8859-1";break;	//Basque
	case "et": $code = "iso-8859-15";break;	//Estonian
	case "fi": $code = "ISO-8859-1";break;	//Finnish
	case "fo": $code = "ISO-8859-1";break;	//Faroese
	case "fr": $code = "ISO-8859-1";break;	//French
	case "ga": $code = "ISO-8859-1";break;	//Irish
	case "gd": $code = "ISO-8859-1";break;	//Scottish
	case "gl": $code = "ISO-8859-1";break;	//Galician
	case "hr": $code = "ISO-8859-2";break;	//Croatian
	case "hu": $code = "ISO-8859-2";break;	//Hungarian
	case "is": $code = "ISO-8859-1";break;	//Icelandic
	case "it": $code = "ISO-8859-1";break;	//Italian
	case "iw": $code = "ISO-8859-8";break;	//Hebrew
	case "ja": $code = "ISO-2022-JP";break;	//Japanese (Shift_JIS)
	case "ko": $code = "EUC_KR";	break;	//Korean	
	case "lt": $code = "ISO-8859-13";break;	//Lithuanian
	case "lv": $code = "ISO-8859-13";break;	//Latvian
	case "mk": $code = "ISO-8859-5";break;	//Macedonian
	case "mt": $code = "ISO-8859-5";break;	//Maltese
	case "nl": $code = "ISO-8859-1";break;	//Dutch
	case "no": $code = "ISO-8859-1";break;	//Norwegian
	case "pl": $code = "ISO-8859-2";break;	//Polish
	case "pt": $code = "ISO-8859-1";break;	//Portuguese
	case "ro": $code = "ISO-8859-2";break;	//Romanian
	case "ru": $code = "ISO-8859-5";break;	//Russian
	case "sh": $code = "ISO-8859-5";break;	//Serbo-Croatian
	case "sk": $code = "ISO-8859-2";break;	//Slovak
	case "sl": $code = "ISO-8859-2";break;	//Slovenian
	case "sq": $code = "ISO-8859-2";break;	//Albanian
	case "sr": $code = "ISO-8859-2";break;	//Serbian
	case "sv": $code = "ISO-8859-1";break;	//Swedish
	case "th": $code = "TIS620";	break;	//Thai
	case "tr": $code = "ISO-8859-9";break;	//Turkish
	case "uk": $code = "ISO-8859-5";break;	//Ukrainian
	case "zh": $code = "GB2312";	break;	//Chainese	
	default: $code = "UTF-8";break;
	}
	return $code;
  }
}
?>
